#!/bin/sh

# ****************************************************************************
#                           AirView Configuration File                        
# ****************************************************************************

# This file is generated based upon your system configuration.  
# 
# Run 'spectralserver usage' for more information.
# 
# Configuration file options are the same name as command line options, but 
# prefixed with "airview.".
# 
# Example: airview.minimum_power=-100 becomes minimum_power=-100
# 
# ------------------------------------------------------------
# AirView Server Configuration
# ------------------------------------------------------------

# config: airview.radio_interface
export RADIO="wifi0"

# config: airview.vap_interface
export VAP="ath0"
# 
export AIRVIEW_ARGS=""
export AIRVIEW_ARGS="${AIRVIEW_ARGS} radio_interface=${RADIO}"
export AIRVIEW_ARGS="${AIRVIEW_ARGS} vap_interface=${VAP}"
# 
# config: airview.nf_check_delay_us
# export AIRVIEW_ARGS="${AIRVIEW_ARGS} nf_check_delay_us=<value>"

# config: airview.nf_check_limit
# export AIRVIEW_ARGS="${AIRVIEW_ARGS} nf_check_limit=<value>"

# config: airview.sweeps_per_long_nf_cal
# export AIRVIEW_ARGS="${AIRVIEW_ARGS} sweeps_per_long_nf_cal=<value>"

# config: airview.count
# export AIRVIEW_ARGS="${AIRVIEW_ARGS} count=<value>"

# config: airview.period
# export AIRVIEW_ARGS="${AIRVIEW_ARGS} period=<value>"

# config: airview.fft_period
# export AIRVIEW_ARGS="${AIRVIEW_ARGS} fft_period=<value>"

# config: airview.short_repeat
# export AIRVIEW_ARGS="${AIRVIEW_ARGS} short_repeat=<value>"

# config: airview.driver_debug_level
# export AIRVIEW_ARGS="${AIRVIEW_ARGS} driver_debug_level=<value>"

# config: airview.tcp_port
# export AIRVIEW_ARGS="${AIRVIEW_ARGS} tcp_port=<value>"

# config: airview.num_client_threads
# export AIRVIEW_ARGS="${AIRVIEW_ARGS} num_client_threads=<value>"

# config: airview.minimum_power
# export AIRVIEW_ARGS="${AIRVIEW_ARGS} minimum_power=<value>"

# config: airview.maximum_power
# export AIRVIEW_ARGS="${AIRVIEW_ARGS} maximum_power=<value>"

# config: airview.frame_at_once
# export AIRVIEW_ARGS="${AIRVIEW_ARGS} frame_at_once=<value>"

# config: airview.debug_level
# export AIRVIEW_ARGS="${AIRVIEW_ARGS} debug_level=<value>"

# config: airview.sample_timeout_ms
# export AIRVIEW_ARGS="${AIRVIEW_ARGS} sample_timeout_ms=<value>"

# config: airview.sample_retries
# export AIRVIEW_ARGS="${AIRVIEW_ARGS} sample_retries=<value>"


# config: airview.frequency_shift
export AIRVIEW_FREQUENCY_SHIFT=0

# ------------------------------------------------------------
# Operational Mode
# ------------------------------------------------------------

# config: airview.autostart
AUTOSTART="1"
if [ "${AUTOSTART}" = "1" ]; then
export AIRVIEW_ARGS="${AIRVIEW_ARGS} connect_timeout_s=0"
export AIRVIEW_ARGS="${AIRVIEW_ARGS} reconnect_timeout_s=0"
else
:;
# config: airview.connect_timeout_s
# export AIRVIEW_ARGS="${AIRVIEW_ARGS} connect_timeout_s=<value>"

# config: airview.reconnect_timeout_s
# export AIRVIEW_ARGS="${AIRVIEW_ARGS} reconnect_timeout_s=<value>"

fi;

# ------------------------------------------------------------
# Debugging Options
# ------------------------------------------------------------

# config: airview.debug_airview_script
export DEBUG_AIRVIEW_SCRIPT=0

# config: airview.output=<none|logger|console|both>
export AIRVIEW_OUTPUT="none"

# ------------------------------------------------------------
# Logger Configuration (when enabled)
# ------------------------------------------------------------

export AIRVIEW_LOGGER_ARGS=""

# config: airview.logger.priority
export AIRVIEW_LOGGER_ARGS="${AIRVIEW_LOGGER_ARGS} -p local1.debug"

# config: airview.logger.tag
export AIRVIEW_LOGGER_ARGS="${AIRVIEW_LOGGER_ARGS} -t 'airview'"

